<?php
namespace Admin\Controller;
use Think\Controller;
class IndexController extends BaseController{
    public function index(){

        $this->display();
    }

    //车辆管理
    public function car_list(){
        $this->display();
    }

    //主页右侧
    public function right(){
        $this->display();
    }
    //主页右边显示
    public function homepage(){
	    	$mysql= M()->query("select VERSION() as version");
	    	$mysql=$mysql[0]['version'];
	    	$info = array(
	    			'操作系统' => PHP_OS,
	    			'运行环境' => $_SERVER["SERVER_SOFTWARE"],
	    			'MYSQL版本' => $mysql,
	    			'脚本解释引擎' => php_sapi_name(),
	    			'上传附件限制' => ini_get('upload_max_filesize'),
	    	);
	    	$this->assign('info',$info);
    		$this->display();
    }
}